import app from './src/app';
import config from './src/config/config';

const PORT = config.PORT || 3000;

app.listen(PORT, () => {
  console.log(`🚀 TypeScript 服务器运行在端口 ${PORT}`);
  console.log(`📍 API 地址: http://localhost:${PORT}/api`);
  console.log(`📖 API 文档: http://localhost:${PORT}/api/docs`);
  console.log(`🔧 环境: ${config.NODE_ENV}`);
});
